package com.wunong.smart.collection.application.request;

import com.wunong.smart.domain.platform.common.BizSource;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author create by zealot.zt
 */
@Getter
@Setter
@ToString(callSuper = true)
public class CollectEntryRequest extends BaseCollectionRequest {

    /**
     * 业务来源信息
     */
    private BizSource source;

    /**
     * 收藏类型
     */
    private String collectType;

    public static CollectEntryRequest of(CollectRequest collectRequest) {
        CollectEntryRequest request = new CollectEntryRequest();

        request.initBasic(collectRequest);
        request.setSource(collectRequest.getSource());
        request.setUserId(collectRequest.getUserId());

        return request;
    }

}
